#ifndef TILESET_H
#define TILESET_H

#include "Graphics.h"

namespace GenBen {

class Tileset
{
public:
	Tileset();
	Tileset(Graphics* graphics, const string& filename, const VectorI& tile_size);
	virtual ~Tileset(); 

	Texture* getTexture() const;
	RectI getSourceRect(uint tile) const;

	VectorI getTileSize() const { return tile_size; }

private:
	Graphics* graphics;
	Texture* texture;
	uint width, height;
	const VectorI tile_size;
};

} // namespace

#endif